package cn.com.utt.unms.vo;

import java.util.Date;
import java.text.SimpleDateFormat;
import cn.com.utt.unms.pojo.Network;

public class NetworkInfo {
	
	private long id;
	private String name;
	private int deviceCount;
	private String group;
	private long groupId;
	private String manager;
	private Date createtime;
	private String remark;
	private long locationId;
	
	public long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getDeviceCount() {
		return deviceCount;
	}

	public void setDeviceCount(int deviceCount) {
		this.deviceCount = deviceCount;
	}

	public String getManager() {
		return manager;
	}

	public void setManager(String manager) {
		this.manager = manager;
	}

	public String getCreatetime() {
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return formatter.format(createtime);
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getRemark() {
		return remark;
	}

	public long getLocationId() {
		return locationId;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setLocationId(long locationId) {
		this.locationId = locationId;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}
	
	public long getGroupId() {
		return groupId;
	}

	public void setGroupId(long groupId) {
		this.groupId = groupId;
	}

	public void convert(Network network) {
		this.id = network.getId();
		this.name = network.getName();
		this.createtime = network.getCreatetime();
		this.remark = network.getRemark();
		this.group = network.getGroup();
		this.groupId = network.getGroupId();
		this.locationId = network.getLocationId();
	}

}
